package com.hdu.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ServiceInstance {
    private String ip;
    private int port;
    private String serviceName;

    public String getTaskTriggerUrl() {
        return "http://" + ip + ":" + port + "/task/trigger";
    }
}